package com.java.demo.controller;

import com.java.demo.service.Service5;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;


@Controller
public class UserController {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        Service5 service5 = context.getBean("service5",Service5.class);
        service5.sayHi();
    }
}
